<form action="{:url('Payment/addCarTypePrice')}" class="layui-form ajax-form" method="post"
      style="margin: 20px">

    <div class="layui-form-item cate_list">
        <label class="layui-form-label">汽车品牌</label>
        <div class="layui-input-block">
            <select data-url="{:url('common/gettypelist')}" lay-filter="cartype"
                    lay-verify="required">
                <option value="">请选择品牌</option>
                {volist name='cartype' id='c'}
                <option value="{$c.cartype_id}" >{$c.cartype_what}</option>
                {/volist}
            </select>
        </div>
    </div>

    <div class="layui-form-item ">
        <label class="layui-form-label">汽车型号</label>
        <div class="layui-input-block">
            <select name="cartype_id" lay-filter="cartypes" class="cartypes"
                    lay-verify="required">
                <option value="">请选择型号</option>
            </select>
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">租金（公里）</label>
        <div class="layui-input-block">
            <input type="number" name="vehicle_price" value=""
                   autocomplete="off" class="layui-input" maxlength="11" lay-verify="required">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">租金（天数）</label>
        <div class="layui-input-block">
            <input type="number" name="vehicle_priceday" value=""
                   autocomplete="off" class="layui-input" maxlength="11" lay-verify="required">
        </div>
    </div>

    <div class="layui-form-item" style="text-align: right">
        <button class="layui-btn" lay-submit="" >确定</button>
        <button type="button" class="layui-btn layui-layer-close clearpostion layui-btn-primary">关闭</button>
    </div>
</form>
<script>
    //Demo
    layui.use('form', function(){
        var form = layui.form;
        form.render(); //更新全部
    });
</script>
